import http from "@/api" 

// 添加地址
export function addAddress(params) {
  return http.post('/admin/pcServe/address', params);
}

// 修改地址 
export function EditAddress(params) {
  return http.put('/admin/pcServe/putAddress', params);
}

// 查询全部地址

export function getAddressDetail(data) {
  return http.post('/admin/pcServe/addressList',data)
}


// 查询用户默认地址
export function getGive(data) {
  return http.post('/admin/pcServe/addressFault',data)
}

// 获取我的当前地址
export const getAddressList = (data) => http.post('/admin/pcServe/ress', data)

// 删除地址
export const DeleteAddress = (data) => http.post('/admin/pcServe/removeAddress', data)